//
//  PeopleModel.m
//  沙盒
//
//  Created by dllo on 16/3/29.
//  Copyright © 2016年 付冬梅. All rights reserved.
//

#import "PeopleModel.h"

@implementation PeopleModel

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeInteger:self.age forKey:@"age"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.age = [aDecoder decodeIntegerForKey:@"age"];
    }
    return self;
}

//- (void)setValue:(id)value forKey:(NSString *)key {
//    if (<#condition#>) {
//        <#statements#>
//    }
//}

@end
